package com.zhongjian.technologycal.mall.bean;

import java.util.List;

/**
 * Created by wei on 2018/3/13.
 */

public class TestBean {

    /**
     * error_code : 0
     * error_message : 成功
     * data : [{"producerName":"潍坊魅澜莎化妆品有限公司","productList":[{"id":216,"product":{"id":414,"productname":"【深度补水】秋水仙补水保湿精华 120ml","price":99,"oldprice":108,"freight":0,"elecnum":50,"producerno":"1","producertel":"潍坊魅澜莎化妆品有限公司","producername":"潍坊魅澜莎化妆品有限公司","productphotos":[{"photo":"/upload/pics/c829a1f8-6c0f-47cc-9ce8-cde02e9137c3.jpg"}]},"productSpec":{"id":2079,"specname":"支","price":108,"elecNum":50},"productnum":1},{"id":217,"product":{"id":292,"productname":"武夷山正岩大红袍","price":288,"oldprice":369,"freight":0,"elecnum":80,"producerno":"1","producertel":"兰博绿韵","producername":"兰博绿韵","productphotos":[{"photo":"/upload/pics/54a636a2-2625-4fe1-9ea1-8aa4f7f70039.jpg"}]},"productSpec":{"id":1910,"specname":"盒","price":288,"elecNum":80},"productnum":1}]},{"producerName":"三兹珍","productList":[{"id":214,"product":{"id":126,"productname":"山兹珍黑木耳","price":45,"oldprice":48,"freight":0,"elecnum":10,"producerno":"123","producertel":"三兹珍","producername":"三兹珍","productphotos":[{"photo":"/upload/pics/b6f1091fd6644ae4b477b58654eed95f.jpg"}]},"productSpec":{"id":1656,"specname":"袋/250克","price":45,"elecNum":10},"productnum":1}]}]
     */

    private int error_code;
    private String error_message;
    private List<DataBean> data;

    public int getError_code() {
        return error_code;
    }

    public void setError_code(int error_code) {
        this.error_code = error_code;
    }

    public String getError_message() {
        return error_message;
    }

    public void setError_message(String error_message) {
        this.error_message = error_message;
    }

    public List<DataBean> getData() {
        return data;
    }

    public void setData(List<DataBean> data) {
        this.data = data;
    }

    public static class DataBean {
        /**
         * producerName : 潍坊魅澜莎化妆品有限公司
         * productList : [{"id":216,"product":{"id":414,"productname":"【深度补水】秋水仙补水保湿精华 120ml","price":99,"oldprice":108,"freight":0,"elecnum":50,"producerno":"1","producertel":"潍坊魅澜莎化妆品有限公司","producername":"潍坊魅澜莎化妆品有限公司","productphotos":[{"photo":"/upload/pics/c829a1f8-6c0f-47cc-9ce8-cde02e9137c3.jpg"}]},"productSpec":{"id":2079,"specname":"支","price":108,"elecNum":50},"productnum":1},{"id":217,"product":{"id":292,"productname":"武夷山正岩大红袍","price":288,"oldprice":369,"freight":0,"elecnum":80,"producerno":"1","producertel":"兰博绿韵","producername":"兰博绿韵","productphotos":[{"photo":"/upload/pics/54a636a2-2625-4fe1-9ea1-8aa4f7f70039.jpg"}]},"productSpec":{"id":1910,"specname":"盒","price":288,"elecNum":80},"productnum":1}]
         */

        private String producerName;
        private List<ProductListBean> productList;

        public String getProducerName() {
            return producerName;
        }

        public void setProducerName(String producerName) {
            this.producerName = producerName;
        }

        public List<ProductListBean> getProductList() {
            return productList;
        }

        public void setProductList(List<ProductListBean> productList) {
            this.productList = productList;
        }

        public static class ProductListBean {
            /**
             * id : 216
             * product : {"id":414,"productname":"【深度补水】秋水仙补水保湿精华 120ml","price":99,"oldprice":108,"freight":0,"elecnum":50,"producerno":"1","producertel":"潍坊魅澜莎化妆品有限公司","producername":"潍坊魅澜莎化妆品有限公司","productphotos":[{"photo":"/upload/pics/c829a1f8-6c0f-47cc-9ce8-cde02e9137c3.jpg"}]}
             * productSpec : {"id":2079,"specname":"支","price":108,"elecNum":50}
             * productnum : 1
             */

            private int id;
            private ProductBean product;
            private ProductSpecBean productSpec;
            private int productnum;

            public int getId() {
                return id;
            }

            public void setId(int id) {
                this.id = id;
            }

            public ProductBean getProduct() {
                return product;
            }

            public void setProduct(ProductBean product) {
                this.product = product;
            }

            public ProductSpecBean getProductSpec() {
                return productSpec;
            }

            public void setProductSpec(ProductSpecBean productSpec) {
                this.productSpec = productSpec;
            }

            public int getProductnum() {
                return productnum;
            }

            public void setProductnum(int productnum) {
                this.productnum = productnum;
            }

            public static class ProductBean {
                /**
                 * id : 414
                 * productname : 【深度补水】秋水仙补水保湿精华 120ml
                 * price : 99.0
                 * oldprice : 108.0
                 * freight : 0.0
                 * elecnum : 50
                 * producerno : 1
                 * producertel : 潍坊魅澜莎化妆品有限公司
                 * producername : 潍坊魅澜莎化妆品有限公司
                 * productphotos : [{"photo":"/upload/pics/c829a1f8-6c0f-47cc-9ce8-cde02e9137c3.jpg"}]
                 */

                private int id;
                private String productname;
                private double price;
                private double oldprice;
                private double freight;
                private int elecnum;
                private String producerno;
                private String producertel;
                private String producername;
                private List<ProductphotosBean> productphotos;

                public int getId() {
                    return id;
                }

                public void setId(int id) {
                    this.id = id;
                }

                public String getProductname() {
                    return productname;
                }

                public void setProductname(String productname) {
                    this.productname = productname;
                }

                public double getPrice() {
                    return price;
                }

                public void setPrice(double price) {
                    this.price = price;
                }

                public double getOldprice() {
                    return oldprice;
                }

                public void setOldprice(double oldprice) {
                    this.oldprice = oldprice;
                }

                public double getFreight() {
                    return freight;
                }

                public void setFreight(double freight) {
                    this.freight = freight;
                }

                public int getElecnum() {
                    return elecnum;
                }

                public void setElecnum(int elecnum) {
                    this.elecnum = elecnum;
                }

                public String getProducerno() {
                    return producerno;
                }

                public void setProducerno(String producerno) {
                    this.producerno = producerno;
                }

                public String getProducertel() {
                    return producertel;
                }

                public void setProducertel(String producertel) {
                    this.producertel = producertel;
                }

                public String getProducername() {
                    return producername;
                }

                public void setProducername(String producername) {
                    this.producername = producername;
                }

                public List<ProductphotosBean> getProductphotos() {
                    return productphotos;
                }

                public void setProductphotos(List<ProductphotosBean> productphotos) {
                    this.productphotos = productphotos;
                }

                public static class ProductphotosBean {
                    /**
                     * photo : /upload/pics/c829a1f8-6c0f-47cc-9ce8-cde02e9137c3.jpg
                     */

                    private String photo;

                    public String getPhoto() {
                        return photo;
                    }

                    public void setPhoto(String photo) {
                        this.photo = photo;
                    }
                }
            }

            public static class ProductSpecBean {
                /**
                 * id : 2079
                 * specname : 支
                 * price : 108.0
                 * elecNum : 50
                 */

                private int id;
                private String specname;
                private double price;
                private int elecNum;

                public int getId() {
                    return id;
                }

                public void setId(int id) {
                    this.id = id;
                }

                public String getSpecname() {
                    return specname;
                }

                public void setSpecname(String specname) {
                    this.specname = specname;
                }

                public double getPrice() {
                    return price;
                }

                public void setPrice(double price) {
                    this.price = price;
                }

                public int getElecNum() {
                    return elecNum;
                }

                public void setElecNum(int elecNum) {
                    this.elecNum = elecNum;
                }
            }
        }
    }
}
